Skip to content

Cleanup work#72

Merged
cryptk merged 6 commits intomainfrom
cleanup_work
Oct 22, 2025
Merged

Cleanup work#72
cryptk merged 6 commits intomainfrom
cleanup_work

Conversation

@cryptk
Copy link
Copy Markdown
Owner

@cryptk cryptk commented Oct 22, 2025

No description provided.

@cryptk cryptk requested a review from Copilot October 22, 2025 01:33
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR performs cleanup work across the codebase, including removal of unused code, dependency updates, improved error handling, and enhanced test coverage for the protocol layer.

Key changes:

  • Removed deprecated/unused API methods and message types
  • Updated Python version requirement and dependency versions
  • Added comprehensive error handling and logging to protocol communication
  • Expanded test coverage with new protocol error scenarios

Reviewed Changes

Copilot reviewed 16 out of 17 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tests/test_protocol.py Added new test cases for error handling scenarios in protocol communication
pyproject.toml Updated Python version requirement and bumped dependency versions
pyomnilogic_local/protocol.py Enhanced error handling, added documentation, improved logging
pyomnilogic_local/omnitypes.py Removed unused MessageType enum values
pyomnilogic_local/models/util.py Removed unused type alias and inlined union types
pyomnilogic_local/models/telemetry.py Fixed typo in comment
pyomnilogic_local/models/mspconfig.py Removed unnecessary type ignore comment
pyomnilogic_local/models/filter_diagnostics.py Removed unnecessary pylint disable comment
pyomnilogic_local/cli_legacy.py Deleted entire legacy CLI file
pyomnilogic_local/cli/utils.py Added @cache decorator to async functions
pyomnilogic_local/cli/debug/commands.py Removed unused commands, added new parse_pcap command
pyomnilogic_local/cli/cli.py Added startup data fetching with error handling
pyomnilogic_local/api.py Removed deprecated alarm list and log config methods
.pre-commit-config.yaml Updated pre-commit hook versions
.github/workflows/ci.yml Added Python 3.12 and 3.14 to CI matrix
.github/copilot-instructions.md Added new file with comprehensive Copilot integration guidelines

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread pyomnilogic_local/cli/utils.py Outdated
Comment thread pyomnilogic_local/cli/utils.py Outdated
- new debug command to parse PCAP data
- remove functions that no longer appear to be supported by modern
  firmware
- general cleanup and improved error handling
@cryptk cryptk merged commit d70d010 into main Oct 22, 2025
12 checks passed
@cryptk cryptk deleted the cleanup_work branch October 22, 2025 02:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants